var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "code": 0,
        "msg": "OK",
        "data": {
            "fieldList": [
                {
                    "id": "name",
                    "name": "类别资产规模"
                },
                {
                    "id": "firstMoney",
                    "name": "期初金额"
                },
                {
                    "id": "firstRatio",
                    "name": "期初占比"
                },
                {
                    "id": "lastMoney",
                    "name": "期末金额"
                },
                {
                    "id": "lastRatio",
                    "name": "期末占比"
                },
                {
                    "id": "increase",
                    "name": "较上期"
                },
            ],
            "list|5": [
                {
                    "id|+1":1,
                    "name|+1": 1,
                    "firstMoney": "@integer(0,10000)",
                    "firstRatio": "@float(-1,1,2,2)",
                    "lastMoney": "@integer(0,10000)",
                    "lastRatio": "@float(-1,1,2,2)",
                    "increase": "@float(-1,1,2,2)"
                },
            ]
        }
    })
}